package com.sdsmusic.Song;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.sdsmusic.controller.Controller;

public class SearchSongsController implements Controller{

	@Override
	public String handleRequest(HttpServletRequest request) {
		HttpSession session= request.getSession();
		String keyword = (String)request.getParameter("keyword");
		ArrayList<SongVO> songList = new SongDAO().serchSongs(keyword);		
		session.setAttribute("searchResult", songList);
		return "/SDSMusic/search.jsp";
	}

}
